﻿using System;

namespace CavemanTools.Sql
{
	/// <summary>
	/// Formatter for Sql Server parameter name
	/// </summary>
	public class SqlParameterFormatter : ISqlParameterFormatter
	{
		public string Format(string paramName)
		{
			if (string.IsNullOrEmpty(paramName)) throw new ArgumentNullException("paramName");
			return "@" + paramName;
		}
	}
}